package models
import (
	"time"
	"github.com/astaxie/beego/orm"
)


//用户控制记录的数组结构
type ErrorLog struct {
	Id          	int64		`orm:"unique;auto"`
	ErrorMsg		string
	TimeStamp		time.Time	`orm:"auto_now_add;type(datetime)"`
}

func init() {
	// 需要在init中注册定义的model
	orm.RegisterModel(new(ErrorLog))
}
func InsertErrorLog(log *ErrorLog)  {

}
//func getErrorLogByTime(t time)  {
//
//}

func getErrorLogById(id uint64)  {

}

//func getAllErrorLog() (logs[] ErrorLog){
//
//}